<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Installation</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="intro.parallel.html">« 简介</a></li>
      <li style="float: right;"><a href="philosophy.parallel.html">Philosophy »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.parallel.html">parallel</a></li>
    <li>Installation</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="parallel.setup" class="chapter">
 <h1>Installation</h1>


 <div class="simplesect" id="parallel.requirements">
  <h3 class="title">需求</h3>
  <p class="para">
 parallel requires a build of PHP with ZTS (Zend Thread Safety) enabled
 (<strong class="option configure">--enable-zts</strong>, or on non-Windows systems prior to PHP 8.0.0,
 <strong class="option configure">--enable-maintainer-zts</strong>)
  </p>
  <div class="caution"><strong class="caution">警告</strong>
  <p class="para">
 Zend Thread Safety cannot be enabled post build; it is a build time configuration option.
  </p>
  </div>
  <p class="para">
 parallel should build anywhere there is a working Posix Threads header (pthread.h) and ZTS build of PHP, including Windows (using the pthread-w32 project from redhat).
  </p>
 </div>

 <div class="simplesect" id="parallel.installation">
  <h3 class="title">安装</h3>
  <p class="para">
   parallel releases are hosted by PECL and the source code by 
    <a href="https://github.com/krakjoe/parallel" class="link external">&raquo;&nbsp;github</a>, 
   the easiest route to installation is the normal PECL route:
   <a href="https://pecl.php.net/package/parallel" class="link external">&raquo;&nbsp;https://pecl.php.net/package/parallel</a>.
  </p>
  <p class="para">
 Windows users can download prebuilt release binaries from the <a href="https://windows.php.net/downloads/pecl/releases/parallel" class="link external">&raquo;&nbsp;PECL</a> website.
  </p>
  <div class="caution"><strong class="caution">警告</strong>
   <p class="para">
 Windows users need to take the additional step of adding pthreadVC2.dll (distributed with Windows releases) to their <var class="envar">PATH</var>.
   </p>
  </div>
 </div>

</div>
</div></div></body></html>